.tabs-view-container {
  height: 40px;
  border-bottom: 1px solid var(--el-border-color);
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--el-header-bg-color);

  :deep(.el-tabs) {
    height: 100%;
    width: 100%;

    .el-tabs__header {
      margin: 0;
      height: 100%;
      border: none;

      .el-tabs__nav {
        height: 100%;
        border: none;
      }

      .el-tabs__item {
        height: 40px;
        line-height: 40px;
        border: none;
        color: #666;
        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        position: relative;
        padding: 0 20px;
        overflow: visible; /* 关键：允许伪元素显示 */

        &:hover {
          color: var(--el-color-primary);
        }

        &.is-active {
          color: var(--el-color-primary);

          .custom-tabs-label {
            color: var(--el-color-primary);
            font-weight: bold;
          }
        }

        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 2px;
          background: var(--el-color-primary);
          transform: scaleX(0);
          transform-origin: center;
          transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
        }

        &.is-active::after {
          transform: scaleX(1);
        }

        .el-icon-close {
          width: 16px;
          height: 16px;
          font-size: 12px;
          margin-left: 6px;
          border-radius: 50%;
          transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          transform-origin: 100% 50%;

          &:hover {
            background-color: #c0c4cc;
            color: #fff;
          }

          &::before {
            transform: scale(0.9);
            display: inline-block;
            vertical-align: -3px;
          }
        }
      }
    }
  }

  .custom-tabs-label {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

  }
}